$(".withdrawal").click(function(){
	window.location.href="../html/record.html?flag=0"
})
$(".btn").click(function(){
	if(delflag=="1"){
		alert("您的帐号已被冻结，请联系管理员")
	}else{
		window.location.href="../html/withdrawal.html?flag=0"
	}
})
$("#gorealname").click(function(){
	window.location.href="../html/realname.html"
})
var delflag;
$(function(){
	$.ajax({
		url:'../userController/getUser',
		success:function(data){
			console.log(data)
			$("#balance").html(data.mBalance.toFixed(2))
			$("#appreciating").html(data.mappreciating.toFixed(2))
			$("#MaccumulatedAmount").html(data.MaccumulatedAmount.toFixed(2))
			delflag=data.delflag;
		}
	})
})

$(function(){
	$.ajax({
		url:'../userController/getUser',
		success:function(data){
			if(data.state=="1"){
				$(".gorealname").html("审核中");
				$(".gorealname").unbind("click");
			}
			if(data.state=="2"){
				$(".gorealname").html("已实名");
				$(".gorealname").unbind("click");
			}
			if(data.state=="3"){
				$(".gorealname").html("已驳回");
			}
		}
	})
})